package Adpter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

import java.util.List;

import entity.RecordEntity;

/**
 * Created by Administrator on 2016/7/9.
 */
public class HistoryAdpter extends BaseAdapter {
    private Context context;
    private List<RecordEntity> recordEntityList;
    @Override
    public int getCount() {
        return recordEntityList.size();
    }

    public HistoryAdpter(Context context, List<RecordEntity> recordEntityList) {
        this.context = context;
        this.recordEntityList = recordEntityList;
    }

    @Override
    public Object getItem(int position) {
        return recordEntityList.get(position);
    }

    @Override
    public long getItemId(int position) {
        return 0;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {

        return null;
    }
}
